#include<math.h>

#include "sc.h"

PixelToPixelOp()
process(in stream unsigned char *i,
         out stream unsigned char *o)
{
  extern double sqrt(double x);
  double blah = *i;
  int ii;
 
  for (ii=0; ii < 16384; ii++)
    blah = sqrt(blah * blah);

  *o = blah;
}

MAINTYPE MAIN(int argc, char **argv)
{
  int i;
  STREAM image;

  scInit(argc, argv);

  for (i=0; i < 12; i++)
  {
    generate(scint(1), &image);
    process(&image, &image);
    discard(&image);
  }

  return scExit();
}
